package com.xinxing.city.recovery.ui;


import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.xinxing.city.recovery.R;

import com.xinxing.city.recovery.utils.MyDialog;

public class SetActivity extends AppCompatActivity {


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);
        Intent mIntent = new Intent();
        mIntent.setAction("com.xinxing.statusbar");
        mIntent.putExtra("status_bar",true );
        sendBroadcast(mIntent);
    }

    @Override
    protected void onResume() {
        super.onResume();

    }

    /**
     * 设备登记与绑定页
     */
    public void tzSetDevice(View view) {
        Intent intent = new Intent(SetActivity.this, SetDeviceActivity.class);
        startActivity(intent);
    }

    /**
     * 品类设置
     */
    public void tzSetCategory(View view) {
        Intent intent = new Intent(SetActivity.this, SetCategoryActivity.class);
        startActivity(intent);
    }

    /**
     * 功能设置页
     */
    public void tzSetAbility(View view) {
        Intent intent = new Intent(SetActivity.this, SetAbilityActivity.class);
        startActivity(intent);
    }

    /**
     * 业务设置页
     */
    public void tzSetOps(View view) {
        Intent intent = new Intent(SetActivity.this, SetOpsActivity.class);
        startActivity(intent);
    }

    /**
     * 交互设置页
     */
    public void tzSetEle(View view) {
        Intent intent = new Intent(SetActivity.this, SetEleActivity.class);
        startActivity(intent);
    }

    /**
     * 设备启用设置页
     */
    public void tzSetDevena(View view) {
        Intent intent = new Intent(SetActivity.this, SetDevenaActivity.class);
        startActivity(intent);
    }

    /**
     * 心跳设置页
     */
    public void tzSetHeart(View view) {
        Intent intent = new Intent(SetActivity.this, SetHeartActivity.class);
        startActivity(intent);
    }

    /**
     * 软件设置页
     */
    public void tzSetBase(View view) {
        Intent intent = new Intent(SetActivity.this, SetBaseActivity.class);
        startActivity(intent);
    }


    /**
     * 跳转判定
     */
    public void tzTips(View view) {
        MyDialog myDialog = MyDialog.newInstance("提示","功能正在建设中...","确定","");
        myDialog.show(getSupportFragmentManager(),"MyDialog");
    }
}
